#ifndef GMSETPOSONSERVER_H
#define GMSETPOSONSERVER_H

#include "GameMessage.h"

#include "Vec3.h"

class GMSetPosOnServer : public GameMessage
{
public:
	GMSetPosOnServer();
	virtual void Execute() override;
	virtual bool Read(SocketMessage* sm) override;
	virtual void Write(SocketMessage* sm) override;

	void SetID(int i);
	int GetID() const;

	Vec3fNet GetPos() const;
	void SetPos(const Vec3fNet& pos);
	
private:
	int m_id;
	float m_posX;
	float m_posY;
	float m_posZ;
};

#endif //GMSETPOSONSERVER_H